package com.digdes.calendar.dao;

/**
 * User: Dmitry
 * Date: 11.04.12
 * Time: 14:39
 */

import com.digdes.calendar.model.Event;

import java.util.Date;
import java.util.List;
import java.util.Set;

public interface EventDAO {
    public void saveEvent(Event e);

    public void updateEvent(Event e);

    public void deleteEvent(Long id);

    public Event findEvent(Long id);

    public Set<Event> getAllEvent();

    public Set<Event> getEventsByUserAndDate(Long placeID, Date start, Date finish);

    public Set<Event> getEventsByPlaceAndDate(Long placeID, Date start, Date finish);

    public List<Event> getEvents(Date d);

    public List<Event> getOldEvents(Date d);

    public List<Event> getEventsBetween(Date dStart, Date dFinish);
}
